package com.pojo;

import java.util.Date;

public class Item {
	private Integer id;

	private String name;

	private Float price;

	private String pic;

	private Date createtime;

	private String detail;

	@Override
	public String toString() {
		return "Item [createtime=" + createtime + ", detail=" + detail
				+ ", id=" + id + ", name=" + name + ", pic=" + pic + ", price="
				+ price + "]";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic == null ? null : pic.trim();
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail == null ? null : detail.trim();
	}

	public Item() {
	}

	public Item(Integer id, String name, Float price, String pic,
			Date createTime, String detail) {
		this.id = id;
		this.name = name;
		this.price = price;
		this.pic = pic;
		this.createtime = createTime;
		this.detail = detail;
	}
}